using System;
using System.Collections.Generic;
using System.Text;

namespace BaseText
{
    public static class txtScript
    {
        public static string ChineseLanguage = @"/^[\u4E00-\u9FA5]*$/";
        public static string Lower = @"/^[a-z]*$/";
        public static string number = @"/^[-+]?\d*$/"; ///^[0-9]*$/";
        public static string phone = @"/^\d{1,4}([-\/](\d{1,8}?)?)?$/";
        public static string IP = @"/^\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}([.\/](\d{1,3}?)?)?)?)?)?)?)?)?)?)?$/";
        public static string Upper = @"/^[A-Z]*$/";
        public static string Onkeypress = @"return regInput(this,	{0},String.fromCharCode(event.keyCode))";
        public static string Onpaste = @"return regInput(this,{0},window.clipboardData.getData('Text'))";
        public static string ondrop = @"return regInput(this,{0},event.dataTransfer.getData('Text'))";
        public static string onfocusCloseInput = "this.style.imeMode='disabled'";
    }
}
